package com.etl.es.document;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 渠道
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2020-10-29 14:51
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Document(indexName = "index-cms-channel",type = "_doc")
public class ChannelDocument {

    @Id
    private String channelCode;

    @Field(type = FieldType.Keyword)
    private String channelName;

    @Field(type = FieldType.Byte)
    private Byte channelTypeCode;

    @Field(type = FieldType.Keyword)
    private String channelTypeName;
}
